package com.mxpio.erp.common.technology.service;

import com.mxpio.erp.common.technology.entity.ItemDesignFile;
import com.mxpio.erp.common.technology.entity.ItemDesignFileAlter;
import com.mxpio.erp.common.technology.entity.ItemDesignFileSignIn;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.system.service.BaseService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ItemDesignFileService extends BaseService<ItemDesignFile> {

    Result<ItemDesignFile> signIn(ItemDesignFile itemDesignFile);

    @Transactional
    Result<ItemDesignFileSignIn> signInApply(ItemDesignFileSignIn itemDesignFileSignIn);

    Result<ItemDesignFileAlter> alter(ItemDesignFileAlter itemDesignFileAlter);

    List<ItemDesignFile> list(Criteria criteria);

    Result<ItemDesignFile> signOutCancel(String id);
}
